package org.itboys.store.entity;

import org.itboys.mongodb.entity.BaseLongIdEntity;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;

/**
 * 分类下的规格特征详情
 * @author weisky
 *
 */
@Entity(value = "StoreProductCategorySpecDetail", noClassnameStored = true)
public class ProductCategorySpecDetail extends BaseLongIdEntity{

	private static final long serialVersionUID = 4090270820438478937L;
	
	@Indexed
	private long productCategoryId;//关联商品分类ID
	@Indexed
	private long specId;//关联ProductCategorySpec 表的ID
	/**
	 * 规格明细名字 比如 ProductCategorySpec 设置为尺码 该那么 就是 L XL等
	 * 比如 ProductCategorySpec 设置为红色 则为 红色 绿色 等
	 */
	private String name;
	private String image;//如果展示方式为图片 则图片展示
	private Integer isDeleted = 0;
	public long getProductCategoryId() {
		return productCategoryId;
	}

	public void setProductCategoryId(long productCategoryId) {
		this.productCategoryId = productCategoryId;
	}

	public long getSpecId() {
		return specId;
	}

	public void setSpecId(long specId) {
		this.specId = specId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Integer getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}
}
